<?php
    header('Content-type:text/html;charset=utf-8');
    if(!empty($_POST['button'])){
        $a=$_POST['d1'];
        switch ($a){
            case"1":

        }
    }
?>
<form method="post" action="">
    <input type="text" name="juzi" value="点击选择你喜爱的美剧">
    <input type="submit" name="button" value="拼尽全力搜寻">
    <p id="d1">越狱</p>
    <p id="d1">行尸走肉</p>
    <p id="d1">绝命毒师</p><br>
<!--    <input type="submit" name="button" value="拼尽全力搜寻">-->
</form>
<style>
    p{display: none}
</style>
<script>
    window.onload = function ()
    {
        var oinput = document.getElementsByTagName("input")[0];
        var op = document.getElementsByTagName("p");
        oinput.onclick = function()
        {
            for(i=0;i<op.length;i++)
            {op[i].style.display = 'block';
            }


        };
    }

</script>
